import { Media } from "@/api/service/lcd-device/types";
import { useQuery } from "@/hook/useTableConfig";

interface Query {
  mType: string[];
  keyword: string;
  scope: string;
  status: string;
  storeId: string;
}

export const table = useTable<Media>({
  rowKey: "mediaId"
});
let queryObj = {
  mType: ["0", "1", "2", "3", "4", "5"],
  keyword: "",
  scope: "",
  status: "",
  storeId: ""
};

// 查询参数
export const query = useQuery<Query>(queryObj);

// 已选中的元素数组
export const keys = ref<string[]>([]);
export const librarySizeOptions = ref<any[]>([]);
export const resolutionList = ref();
export const labelOptions = ref();

export const resetQuery = () => {
  query.value = useQuery({ ...queryObj }).value;
};
